//
//  YZSignAPI.h
//  VET
//
//  Created by Lam BG on 2018/6/29.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZBaseAPI.h"

@interface YZSignAPI : YZBaseAPI

/** 验证手机号码是否存在 */
+ (RACSignal*)apiCheckUserMobile:(NSString*)number;

/** 发送短信验证码 */
+ (RACSignal*)apiGetUserMessage:(NSString*)number;

/** 注册 */
+ (RACSignal*)apiRegistUser:(NSString*)number password:(NSString*)password verCode:(NSString*)verCode uid:(NSString*)uid;

/** 登录 */
+ (RACSignal*)apiLoginUserMobile:(NSString*)number andPassword:(NSString*)password
                     deviceToken:(NSString *)deviceToken;

/** 微信登录 */
+ (RACSignal*)apiWeChatLogin:(NSString*)code;

/** 完善用户信息 */
+ (YZSignAPI*)inputUserInfoAPI;

+ (RACSignal*)apiSignOut;

@end

#define kAPIUserConsumer @"/api/consumer"

#define kAPIUserMobile @"/api/user/mobile"
#define kAPIUserMessage @"/api/user/message"
#define kAPIUserUser @"/api/user/user"
#define kAPIUserUserInfo @"/api/user/userInfo"
#define kAPIUserWeChatLogin @"/api/user/weChatLogin"







